package com.gxa.hualian.dao;

import com.gxa.hualian.entity.Manager;
import com.gxa.hualian.entity.User;

import java.util.List;

public interface ManagerDao {
    /**
     * 根据手机查询
     * @param phone
     * @return
     * @throws Exception
     */
    Manager selectByPhone(String phone) throws Exception  ;

    /**
     *
     * 插入操作
     * @param manager
     * @return
     * @throws Exception
     */
    Integer inster(Manager manager) throws Exception;

    /**
     * 分页查询
     * @param page
     * @param limit
     * @return
     * @throws Exception
     */
    List<Manager> selectByPage(Integer page, Integer limit) throws Exception;

    /**
     * 全查询
     * @return
     * @throws Exception
     */
    List<Manager> selectAll() throws  Exception ;

    /**
     * 根据手机号删除
     * @param phone
     * @return
     * @throws Exception
     */
    Boolean deleteByPhone(String phone) throws Exception;

    /**
     * 修改操作
     * @param manager
     * @return
     * @throws Exception
     */
    Integer update(Manager manager) throws Exception ;

    /**
     * 模糊查询
     * @param value
     * @return
     * @throws Exception
     */
    List<Manager> selectLikeName( Object value) throws Exception;
}
